package com.spider.mapper;

import com.spider.entites.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author panglin
 * @date 2020/11/19 10:42
 */
public interface UserMapper {
    User getUser(@Param("user") User user);

    List<User> getUsers(@Param("info") String info, @Param("pageNum") Integer num, @Param("pageSize") Integer size);

    Integer getTotal(@Param("info") String info);

    Integer addUser(@Param("user") User user);

    Integer deleteByName(@Param("name") String name);

    User getUserById(@Param("id") Integer id);

    Integer updateUserById(@Param("user") User user);
}
